import { createStore, applyMiddleware } from 'redux';
import detailReducer from '../reducers/index';
import thunkMiddleware from 'redux-thunk'

const createStoreWithMiddleware = applyMiddleware(thunkMiddleware)(createStore)
const store = createStoreWithMiddleware(detailReducer);

export default store;